﻿using System;
using System.Collections.Generic;
using System.Text;
using Gtk;

namespace GtkSharpTutorial
{
    class LineWrappedLabel :Labels
    {
        public LineWrappedLabel()
        {
            var frame = new Frame("Line wrapped Label");
            var label = new Label("This is an example of a line-wrapped label.  It " +
                "should not be taking up the entire             " /* big space to test spacing */ +
                "width allocated to it, but automatically " +
                "wraps the words to fit.  " +
                "The time has come, for all good men, to come to " +
                "the aid of their party.  " +
                "The sixth sheik's six sheep's sick.\n" +
                "     It supports multiple paragraphs correctly, " +
                "and  correctly   adds " +
                "many          extra  spaces. ");

            label.SingleLineMode = false;
            label.LineWrap = true;

            frame.Add(label);

            Widget = frame;
        }
    }
}
